Kristian Rietveld [Mon, 13 Oct 2003 18:15:10 +0000 (18:15 +0000)]
enable GTK_DISABLE_DEPRECATED again, (set_interp_type), (main): port over
Mon Oct 13 20:21:55 2003 Kristian Rietveld <kris@gtk.org>
* demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
(set_interp_type), (main): port over from option menu to GtkComboBox.
Kristian Rietveld [Mon, 13 Oct 2003 17:43:48 +0000 (17:43 +0000)]
Still uses option menus, so turn off GTK_DISABLE_DEPRECATED.
Mon Oct 13 19:41:55 2003 Kristian Rietveld <kris@gtk.org>
* tests/testmenus.c: Still uses option menus, so turn off
GTK_DISABLE_DEPRECATED.
Federico Mena Quintero [Mon, 13 Oct 2003 02:31:09 +0000 (02:31 +0000)]
Read the file's information from gnome-vfs if we haven't finished loading
2003-10-12 Federico Mena Quintero <federico@ximian.com>
* gtkfilesystemgnomevfs.c (gtk_file_folder_gnome_vfs_get_info):
Read the file's information from gnome-vfs if we haven't finished
loading the directory yet.
* gtkfilechooserimpldefault.c (tree_selection_changed): Set the
sensitivity of the bookmarks button depending on whether the
current folder already exists in the bookmarks list.
(shortcuts_selection_changed): Re-select the appropriate shortcuts
folder if the user clicks on the separator row.
(set_list_model): New function; moved the code from
tree_selection_changed().
(tree_selection_changed): Use set_list_model().
(create_folder_tree): Show the tree model only if we are in folder
mode.
(create_file_list): Show the list model only if we are not in
folder mode.
Matthias Clasen [Sat, 11 Oct 2003 23:12:20 +0000 (23:12 +0000)]
Move GET_PRIVATE macros from header to implementation.
Sun Oct 12 01:10:29 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkalignment.[hc]:
* gtk/gtkcombobox.[hc]:
* gtk/gtkcomboboxentry.[hc]:
* gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
from header to implementation.
Matthias Clasen [Sat, 11 Oct 2003 22:36:04 +0000 (22:36 +0000)]
Add the get_type() functions for GtkEntryCompletion, GtkTreeModelFilter,
Sun Oct 12 00:33:48 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtk.types: Add the get_type() functions for
GtkEntryCompletion, GtkTreeModelFilter, GtkCellLayout,
GtkComboBox, GtkComboBoxEntry.
Matthias Clasen [Sat, 11 Oct 2003 22:21:04 +0000 (22:21 +0000)]
These files still use option menus, so turn off GTK_DISABLE_DEPRECATED to
Sun Oct 12 00:18:02 2003 Matthias Clasen <maclas@gmx.de>
* tests/testtreeview.c:
* demos/testpixbuf-scale.c:
* tests/prop-editor.c: These files still use option menus,
so turn off GTK_DISABLE_DEPRECATED to fix the build.
Matthias Clasen [Sat, 11 Oct 2003 21:24:10 +0000 (21:24 +0000)]
Add G_BEGIN_DECLS/G_END_DECLS to make these usable in C++. (#124351,
Sat Oct 11 23:14:36 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.h:
* gtk/gtkaction.h:
* gtk/gtkradioaction.h:
* gtk/gtkradiotoolbutton.h:
* gtk/gtkseparatortoolitem.h:
* gtk/gtktoggleaction.h:
* gtk/gtktoolitem.h:
* gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make
these usable in C++. (#124351, Murray Cumming)
Kristian Rietveld [Sat, 11 Oct 2003 17:10:37 +0000 (17:10 +0000)]
Check if completion is non-NULL before accessing it. Oops.
Sat Oct 11 19:09:05 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
non-NULL before accessing it. Oops.
Kristian Rietveld [Sat, 11 Oct 2003 13:49:22 +0000 (13:49 +0000)]
the gchar* parameters should be const (pointed out by both Marco Pesenti
Sat Oct 11 15:47:03 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
(gtk_entry_completion_insert_action_text),
(gtk_entry_completion_insert_action_markup): the gchar* parameters
should be const (pointed out by both Marco Pesenti Gritti and
Murray Cumming (#124356).
Kristian Rietveld [Sat, 11 Oct 2003 13:39:35 +0000 (13:39 +0000)]
for the custom child list mode, allocate the height allocation->height to
Sat Oct 11 15:37:19 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
child list mode, allocate the height allocation->height to the
button instead of the height requested by the button. (Tiny
size allocation screwup noticed by Macro Pesenti Gritti).
Kristian Rietveld [Sat, 11 Oct 2003 13:32:16 +0000 (13:32 +0000)]
Fixes based on comments from Marco Pesenti Gritti.
Sat Oct 11 15:23:27 2003 Kristian Rietveld <kris@gtk.org>
Fixes based on comments from Marco Pesenti Gritti.
* gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
signal handler, avoids the completion popup to popup when text is
set programmatically in most cases (we actually have to handle this
in the _editable functions as well, but that will break popping up
when the user actually typed something :),
(gtk_entry_completion_key_press): when handling enter, bail out
when nothing has been selected,
(gtk_entry_completion_changed): don't popdown when the entry content
changed.
* gtk/gtkentrycompletion.c (gtk_entry_completion_init),
(gtk_entry_completion_selected_changed): unselect_all on the
first selected changed signal. Avoids having a default row selected,
(_gtk_entry_completion_popup): don't select the first row by default.
* gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
first_sel_changed field.
Matthias Clasen [Fri, 10 Oct 2003 22:20:19 +0000 (22:20 +0000)]
Included gtk_progress_bar_get_orientation() in the list of undeprecated
Sat Oct 11 00:18:46 2003 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkprogressbar.sgml: Included
gtk_progress_bar_get_orientation() in the list of undeprecated
functions, use less clumsy markup for enumerations.
Matthias Clasen [Fri, 10 Oct 2003 21:04:30 +0000 (21:04 +0000)]
Replace GtkItemFactory by GtkUIManager in the intro (again).
Fri Oct 10 23:02:58 2003 Matthias Clasen <maclas@gmx.de>
* demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager
in the intro (again).
Matthias Clasen [Fri, 10 Oct 2003 20:54:50 +0000 (20:54 +0000)]
Fixes for (#124212, Marco Pesenti Gritti):
Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
Fixes for (#124212, Marco Pesenti Gritti):
* gtk/gtkuimanager.c (update_smart_separators): Don't spit
warnings for popups.
(_gtk_menu_is_empty): Return FALSE for non-menus.
Kristian Rietveld [Fri, 10 Oct 2003 17:18:34 +0000 (17:18 +0000)]
Deprecate. Ditto.
Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombo.h: Deprecate.
* gtk/gtkoptionmenu.h: Ditto.
* gtk/gtkcombobox.c (gtk_combo_box_size_request),
(gtk_combo_box_size_allocate): Rework, things behave better now. Still
needs some work on requesting enough size when taking the items in
the list into account.
* gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
deprecated" guards.
* gtk/gtkinputdialog.c: ditto.
* gtk/gtkitemfactory.c: ditto.
* gtk/gtkoptionmenu.c: ditto.
* demos/gtk-demo/menus.c: remove the option menu.
* demos/gtk-demo/sizegroup.c: replace the option menus with
GtkComboBox.
* demos/gtk-demo/textview.c: ditto.
(A general GtkComboBox demo will be added later on).
Federico Mena Quintero [Thu, 9 Oct 2003 19:01:34 +0000 (19:01 +0000)]
Duuuh, cvs add the stupid files - Federico
Federico Mena Quintero [Thu, 9 Oct 2003 01:12:24 +0000 (01:12 +0000)]
Autosize the columns after the model is set. (shortcuts_append_path): Add
2003-10-08 Federico Mena Quintero <federico@ximian.com>
* gtkfilechooserimpldefault.c (tree_selection_changed): Autosize
the columns after the model is set.
(shortcuts_append_path): Add optional indentation to items.
(shortcuts_append_bookmarks): Indent bookmark items.
(create_shortcuts_tree): Set the "xpad" attribute of the name
renderer to be fetched from the indent column.
(shortcuts_append_bookmarks): Use NULL for the name of the
bookmarks node, so that a separator gets drawn.
(create_shortcuts_tree): Create a GtkCellRendererSepText.
* gtkcellrendererseptext.[ch]: New files with a cell renderer that
can display text or a separator line.
* Makefile.am (libgtkfilechooser_la_SOURCES): Added
gtkcellrendererseptext.[ch].
Raymond Penners [Wed, 8 Oct 2003 19:22:37 +0000 (19:22 +0000)]
Released 0.5.0
Federico Mena Quintero [Wed, 8 Oct 2003 04:14:55 +0000 (04:14 +0000)]
Added methods for ::get_supports_bookmarks(), ::set_bookmarks(),
2003-10-07 Federico Mena Quintero <federico@ximian.com>
* gtkfilesystem.h (struct _GtkFileSystemIface): Added methods for
::get_supports_bookmarks(), ::set_bookmarks(), ::list_bookmarks().
Added a ::bookmarks_changed() signal.
* gtkfilesystem.c (gtk_file_system_get_supports_bookmarks): New function.
(gtk_file_system_set_bookmarks): New function.
(gtk_file_system_list_bookmarks): New function.
(gtk_file_system_base_init): Create the "bookmarks-changed" signal.
(gtk_file_paths_copy): New function.
* gtkfilesystemunix.c (gtk_file_system_unix_get_supports_bookmarks): Implement.
(gtk_file_system_unix_set_bookmarks): Implement.
(gtk_file_system_unix_get_bookmarks): Implement.
* gtkfilesystemgnomevfs.c (struct _GtkFileSystemGnomeVFS): Added
fields for the bookmarks and the GConfClient.
(gtk_file_system_gnome_vfs_set_bookmarks): Implement.
(gtk_file_system_gnome_vfs_list_bookmarks): Implement.
* gtkfilechooserprivate.h (struct _GtkFileChooserIface): Added
methods for ::set_shortcut_folders(), ::list_shortcut_folders().
* gtkfilechooser.c (gtk_file_chooser_set_shortcut_folders): New
function.
(gtk_file_chooser_list_shortcut_folders): New function.
* gtkfilechooserimpldefault.c (create_shortcuts_model): Unref the
old shortcuts model if it exists. Create the nodes for the
app-specific shortcut folders.
(struct _GtkFileChooserImplDefault): Added a field for the
shortcut_folders.
(gtk_file_chooser_impl_default_set_shortcut_folders): Implement.
(select_shortcuts_folder): New helper function.
(gtk_file_chooser_impl_default_set_current_folder): Use
select_shortcuts_folder().
(shortcuts_append_path): Get the file info here, instead of the
caller.
(shortcuts_append_home): Use shortcuts_append_path().
(shortcuts_append_file_system_roots): Likewise.
(create_shortcuts_model): Add the app-specific shortcut folders
and the bookmarks.
(gtk_file_chooser_impl_default_list_shortcut_folders): Implement.
(create_shortcuts_tree): Added a button to let the user add the
current folder to the bookmarks.
(gtk_file_chooser_impl_default_set_property): Connect to
"bookmarks-changed" on the file system.
(shortcuts_append_bookmarks): New function.
* configure.ac: Depend on GConf.
Matthias Clasen [Tue, 7 Oct 2003 22:07:16 +0000 (22:07 +0000)]
New callback to propertly report radio actions.
Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
* demos/gtk-demo/ui_manager.c (activate_radio_action): New
callback to propertly report radio actions.
* demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
Matthias Clasen [Tue, 7 Oct 2003 21:32:54 +0000 (21:32 +0000)]
Add C++ guards. (123955, Harring Figueiredo)
Tue Oct 7 23:30:00 2003 Matthias Clasen <maclas@gmx.de>
* gdk-pixbuf-xlib.h: Add C++ guards. (123955, Harring Figueiredo)
Matthias Clasen [Tue, 7 Oct 2003 21:27:11 +0000 (21:27 +0000)]
Put the supported protocol version in in the right field of the
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
version in in the right field of the _XEMBED_INFO property.
(#123885, Denis Mikhalkin)
Raymond Penners [Tue, 7 Oct 2003 20:53:15 +0000 (20:53 +0000)]
added safety
Raymond Penners [Tue, 7 Oct 2003 20:41:36 +0000 (20:41 +0000)]
Messed up changelog, again, zzz
Raymond Penners [Tue, 7 Oct 2003 20:40:32 +0000 (20:40 +0000)]
Messed up changelog
Raymond Penners [Tue, 7 Oct 2003 20:31:45 +0000 (20:31 +0000)]
Removed debugging stuff
cinamod [Tue, 7 Oct 2003 20:11:27 +0000 (20:11 +0000)]
clean up some return values in xp_theme
cinamod [Tue, 7 Oct 2003 20:07:49 +0000 (20:07 +0000)]
remove C++ comments
Raymond Penners [Tue, 7 Oct 2003 19:58:28 +0000 (19:58 +0000)]
Lightweight theme switching
cinamod [Tue, 7 Oct 2003 19:10:15 +0000 (19:10 +0000)]
mingw build system
Raymond Penners [Tue, 7 Oct 2003 18:56:57 +0000 (18:56 +0000)]
Fixes
Jonathan Blandford [Tue, 7 Oct 2003 18:25:18 +0000 (18:25 +0000)]
only show the child if we have one.
Mon Oct 6 14:18:47 2003 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
the child if we have one.
(gtk_expander_button_release): use
gtk_widget_activate instead.
cinamod [Tue, 7 Oct 2003 18:21:24 +0000 (18:21 +0000)]
define HTHEME
Raymond Penners [Tue, 7 Oct 2003 18:03:34 +0000 (18:03 +0000)]
IsThemeActive and dfns->defs
Danilo Å egan [Tue, 7 Oct 2003 11:34:40 +0000 (11:34 +0000)]
Updated Serbian translation.
2003-10-07 Danilo Å egan <dsegan@gmx.net>
* sr.po, sr@Latn.po: Updated Serbian translation.
Christian Rose [Mon, 6 Oct 2003 23:26:24 +0000 (23:26 +0000)]
Updated Swedish translation.
2003-10-07 Christian Rose <menthos@menthos.com>
* sv.po: Updated Swedish translation.
Pablo Gonzalo del Campo [Mon, 6 Oct 2003 21:36:16 +0000 (21:36 +0000)]
Updated Spanish translation by Francisco Javier F. Serrador
2003-10-06 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
* es.po: Updated Spanish translation by
Francisco Javier F. Serrador <serrador@arrakis.es>.
Matthias Clasen [Mon, 6 Oct 2003 19:07:49 +0000 (19:07 +0000)]
Start the blurb for "right_attach" with a capital. (#123945, Christian
Mon Oct 6 21:05:46 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtktable.c (gtk_table_class_init): Start the blurb for
"right_attach" with a capital. (#123945, Christian Rose)
cinamod [Mon, 6 Oct 2003 16:38:53 +0000 (16:38 +0000)]
xp theme definitions for platforms NOT winxp, catch system settings changes, disable theme switching
Danilo Å egan [Mon, 6 Oct 2003 11:15:37 +0000 (11:15 +0000)]
Updated Serbian translation.
2003-10-06 Danilo Å egan <dsegan@gmx.net>
* sr.po, sr@Latn: Updated Serbian translation.
Christian Rose [Mon, 6 Oct 2003 00:53:06 +0000 (00:53 +0000)]
Updated Swedish translation somewhat.
2003-10-06 Christian Rose <menthos@menthos.com>
* sv.po: Updated Swedish translation somewhat.
Matthias Clasen [Sun, 5 Oct 2003 22:00:49 +0000 (22:00 +0000)]
Remove an extraneous unref. (#122336, Frederic Crozat)
Sun Oct 5 23:59:03 2003 Matthias Clasen <maclas@gmx.de>
* tests/testsocket.c (child_read_watch): Remove an
extraneous unref. (#122336, Frederic Crozat)
Matthias Clasen [Sun, 5 Oct 2003 20:39:17 +0000 (20:39 +0000)]
Trim whitespace in "visible-window" blurb. (#123910, Christian Rose)
Sun Oct 5 22:38:22 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkeventbox.c (gtk_event_box_class_init): Trim whitespace in
"visible-window" blurb. (#123910, Christian Rose)
KAMAGASAKO Masatoshi [Sun, 5 Oct 2003 14:45:16 +0000 (14:45 +0000)]
Updated Japanese translation.
2003-10-05 KAMAGASAKO Masatoshi <emerald@gnome.gr.jp>
* ja.po: Updated Japanese translation.
Soeren Sandmann [Sat, 4 Oct 2003 22:58:14 +0000 (22:58 +0000)]
focus arrow before pack_end items (#123851, Matthias Clasen)
Sun Oct 5 00:53:15 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
focus arrow before pack_end items (#123851, Matthias Clasen)
Danilo Å egan [Sat, 4 Oct 2003 20:14:08 +0000 (20:14 +0000)]
Updated Serbian translation.
2003-10-04 Danilo Å egan <dsegan@gmx.net>
* sr.po, sr@Latn.po: Updated Serbian translation.
Christian Rose [Sat, 4 Oct 2003 19:45:37 +0000 (19:45 +0000)]
Updated Swedish translation somewhat.
2003-10-04 Christian Rose <menthos@menthos.com>
* sv.po: Updated Swedish translation somewhat.
Christian Rose [Sat, 4 Oct 2003 15:59:41 +0000 (15:59 +0000)]
Added missing files.
2003-10-04 Christian Rose <menthos@menthos.com>
* POTFILES.in: Added missing files.
Danilo Å egan [Sat, 4 Oct 2003 01:33:59 +0000 (01:33 +0000)]
Updated Serbian translation.
2003-10-04 Danilo Å egan <dsegan@gmx.net>
* sr.po, sr@Latn.po: Updated Serbian translation.
Kristian Rietveld [Fri, 3 Oct 2003 18:56:24 +0000 (18:56 +0000)]
only set the model on ->priv->cell_view if ->priv->cell_view is non-NULL.
Fri Oct 3 20:50:48 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
on ->priv->cell_view if ->priv->cell_view is non-NULL.
* gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
field to GtkComboBoxEntryPrivate,
(gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
(gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
(gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
a construct-only "text_column" property and reorder code to use it
and support inheriting this widget.
cinamod [Fri, 3 Oct 2003 18:17:39 +0000 (18:17 +0000)]
fix menu delays
cinamod [Fri, 3 Oct 2003 17:02:45 +0000 (17:02 +0000)]
redo how we do styles
cinamod [Fri, 3 Oct 2003 16:20:25 +0000 (16:20 +0000)]
catch color changes properly now
cinamod [Fri, 3 Oct 2003 15:54:20 +0000 (15:54 +0000)]
catch theme and color changes
cinamod [Fri, 3 Oct 2003 13:51:41 +0000 (13:51 +0000)]
don't leak as many GCs
Kristian Rietveld [Thu, 2 Oct 2003 21:30:11 +0000 (21:30 +0000)]
Added API doc comments.
Thu Oct 2 23:28:02 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombobox.c: Added API doc comments.
* gtk/gtkcomboboxentry.c: Ditto.
Matthias Clasen [Wed, 1 Oct 2003 22:53:57 +0000 (22:53 +0000)]
Doc tweaks-
Matthias Clasen [Wed, 1 Oct 2003 22:43:30 +0000 (22:43 +0000)]
Add gtkcellview.h and gtkcellviewmenuitem.h.
2003-10-02 Matthias Clasen <maclas@gmx.de>
* gtk/Makefile.am (IGNORE_HFILES): Add gtkcellview.h and
gtkcellviewmenuitem.h.
* gtk/tmpl/gtkentrycompletion.sgml:
* gtk/tmpl/gtktreemodelfilter.sgml:
* gtk/tmpl/gtkcelllayout.sgml:
* gtk/tmpl/gtkcombobox.sgml:
* gtk/tmpl/gtkcomboboxentry.sgml: New templates.
* gtk/gtk-sections.txt:
* gtk/gtk-docs.sgml: Add sections for GtkEntryCompletion,
GtkTreeModelFilter, GtkCellLayout, GtkComboBox, GtkComboBoxEntry.
* gtk/tmpl/gtktreednd.sgml: Add short description.
* gtk/gtk-docs.sgml: Move GtkItemFactory to the "Deprecated" chapter.
* gtk/tmpl/gtktoggletoolbutton.sgml: Fix section title.
Federico Mena Quintero [Wed, 1 Oct 2003 21:40:17 +0000 (21:40 +0000)]
Simplify with a macro. This bloats the compiled code, but at least it
2003-10-01 Federico Mena Quintero <federico@ximian.com>
* gtkfilechooserimpldefault.c (name_sort_func): Simplify with a
macro. This bloats the compiled code, but at least it makes the
human-readable code not egregiously ugly.
(size_sort_func): Likewise.
(mtime_sort_func): Likewise.
Kristian Rietveld [Wed, 1 Oct 2003 20:51:54 +0000 (20:51 +0000)]
implement the GtkCellLayout interface, drop packing/attribute/cell data
Wed Oct 1 22:43:40 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
packing/attribute/cell data functions from the header,
(gtk_cell_view_set_cell_data): added support for cell data funcs.
* gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
packing/attribute/cell data functions from the header, implemented
cell data func support.
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
for the move to GtkCellLayout.
* tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
cinamod [Wed, 1 Oct 2003 20:49:44 +0000 (20:49 +0000)]
be more protective about when we install properties
Federico Mena Quintero [Wed, 1 Oct 2003 19:42:50 +0000 (19:42 +0000)]
Use enum values instead of plain numbers for the file lists's sort
2003-10-01 Federico Mena Quintero <federico@ximian.com>
* gtkfilechooserimpldefault.c (tree_selection_changed): Use enum
values instead of plain numbers for the file lists's sort columns.
(create_file_list): Likewise.
(tree_selection_changed): Make the file list start up sorted by
name, and don't specify a default sorting function, so that there
is no unsorted order. This is for consistency with Nautilus.
(list_sort_column_changed_cb): Callback; we cache whether the sort
order for the file list's name column is ascending or not.
(compare_with_folders_first): New helper function to sort
directories before files.
(name_sort_func): Use compare_with_folders_first().
(size_sort_func): Likewise.
(mtime_sort_func): Likewise.
Of course this callback mess would be easy in a real language:
(set-sort-func sortable NAME_COLUMN
(make-comparer impl (lambda (a b) (strcmp (get-name a) (get-name b)))))
(set-sort-func sortable SIZE_COLUMN
(make-comparer impl (lambda (a b) (compare (get-size a) (get-size b)))))
... etc ...
(define (make-comparer impl f)
(lambda (a b)
(if (eq (is-dir? a) (is-dir? b))
(f a b)
(if (sort-ascending? impl)
(if (is-dir? a) -1 1)
(if (is-dir? a) 1 -1)))))
Matthias Clasen [Wed, 1 Oct 2003 19:07:36 +0000 (19:07 +0000)]
Introduce a separate "hide_if_empty" property for empty menu handling.
2003-10-01 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaction.c (gtk_action_class_init):
(gtk_action_[gs]et_property): Introduce a separate
"hide_if_empty" property for empty menu handling.
(_gtk_action_sync_menu_visible): ...and use it here.
* tests/testmerge.c (main): ...and here.
Federico Mena Quintero [Wed, 1 Oct 2003 00:53:59 +0000 (00:53 +0000)]
Added fields for the shortcuts tree and its model. (create_file_list):
2003-09-30 Federico Mena Quintero <federico@ximian.com>
* gtkfilechooserimpldefault.c (struct _GtkFileChooserImplDefault):
Added fields for the shortcuts tree and its model.
(create_file_list): Don't call
gtk_tree_view_column_set_sort_column_id() twice.
(create_shortcuts_model): New function.
(list_icon_data_func): Use an ICON_SIZE macro instead of a
hardcoded value.
(list_row_activated): Use _gtk_file_chooser_set_current_folder_path()
to avoid converting the GtkFilePath to a URI string.
(gtk_file_chooser_impl_default_set_current_folder): Select the
appropriate item from the shortcuts list when the current folder
changes, to let the user know where he is.
(tree_selection_changed): Likewise.
* gtkfilesystem.h (struct _GtkFileSystemIface): Added methods for
::supports_shortcuts(), ::list_shortcuts(), ::set_shortcuts().
Matthias Clasen [Wed, 1 Oct 2003 00:16:11 +0000 (00:16 +0000)]
Fix signal doc comments to pacify gtk-doc.
* gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc
comments to pacify gtk-doc.
Matthias Clasen [Tue, 30 Sep 2003 23:25:48 +0000 (23:25 +0000)]
Add two missing signals.
* gdk/tmpl/keys.sgml: Add two missing signals.
Matthias Clasen [Tue, 30 Sep 2003 22:48:10 +0000 (22:48 +0000)]
Doc formatting tweaks.
2003-10-01 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c: Doc formatting tweaks.
* gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
* gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio):
Use the same parameter names as in .c file, to pacify gtk-doc.
* gtk/gtktoggletoolbutton.[hc]:
* gtk/gtktoolbutton.[hc]:
* gtk/gtktoolitem.[hc]:
* gtk/gtktoolbar.[hc]:
* gtk/gtkcolorbutton.[hc]:
* gtk/gtkfontbutton.[hc]:
* gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the
source, not in the header.
* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio):
Document these as 2.4 API additions.
* gtk/tmpl/gtkaction.sgml: Fix cross reference to GtkMenuMerge.
* gtk/gtk-sections.txt: Additions.
* gtk/tmpl/gtkitemfactory.sgml: Add hint to use #GtkUIManager instead.
Kristian Rietveld [Tue, 30 Sep 2003 21:44:39 +0000 (21:44 +0000)]
Add API doc comments.
Tue Sep 30 23:42:56 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentry.c (gtk_entry_set_completion),
(gtk_entry_get_completion): Add API doc comments.
* gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
Matthias Clasen [Tue, 30 Sep 2003 21:15:00 +0000 (21:15 +0000)]
Add hint to use #GtkUIManager instead.
* gtk/tmpl/gtkitemfactory.sgml: Add hint to use #GtkUIManager instead.
Kristian Rietveld [Tue, 30 Sep 2003 21:14:09 +0000 (21:14 +0000)]
Add "Since: 2.4" to all API doc comments.
Tue Sep 30 23:12:34 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
Kristian Rietveld [Tue, 30 Sep 2003 21:02:05 +0000 (21:02 +0000)]
Some API doc comment fixes.
Tue Sep 30 22:59:58 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
* gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
Matthias Clasen [Tue, 30 Sep 2003 20:55:24 +0000 (20:55 +0000)]
Test handling of empty menus.
2003-09-30 Matthias Clasen <maclas@gmx.de>
* tests/merge-*.ui:
* tests/testmerge.c: Test handling of empty menus.
* gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
whether a menu is empty. Used in gtkaction.c.
(update_smart_separators): Also update the visibility of empty menus.
(update_node): When creating a new menu proxy, insert an "Empty" menu
item which only gets shown if the menu is empty.
* gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
"is_important" for menu proxies.
(_gtk_action_sync_menu_visible): New function to sync the visibility
of menu proxies. Used in gtkuimanager.c.
(gtk_action_sync_visible): New function to sync the visibility of
proxies.
Kristian Rietveld [Tue, 30 Sep 2003 19:46:48 +0000 (19:46 +0000)]
set popup_in_progress to TRUE, (gtk_combo_box_menu_show): and back to
Tue Sep 30 21:43:34 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
popup_in_progress to TRUE,
(gtk_combo_box_menu_show): and back to FALSE here; the menu now
won't disappear on the first button release. (Reported by Matthias
Clasen).
Kristian Rietveld [Tue, 30 Sep 2003 19:11:55 +0000 (19:11 +0000)]
actually show the child.
Tue Sep 30 21:08:43 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
Marco Pesenti Gritti).
Murray Cumming [Tue, 30 Sep 2003 17:10:02 +0000 (17:10 +0000)]
The render vfunc takes a GdkDrawable* instead of a GdkWindow*, because
2003-09-30 Murray Cumming <murrayc@usa.net>
* gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
instead of a GdkWindow*, because that what it is given. The
documentation was already correct. This should cause no API/ABI
breakage with C compilers.
* gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c,
gtkcellrenderertogger.c: Updated the declarations of the render vfunc
implementation accordingly.
Gustavo Maciel Dias Vieira [Tue, 30 Sep 2003 15:32:06 +0000 (15:32 +0000)]
Applied revision by Augusta Marques da Silva <augusta.marques@gmx.net>.
2003-09-30 Gustavo Maciel Dias Vieira <gdvieira@zaz.com.br>
* pt_BR.po: Applied revision by Augusta Marques da Silva
<augusta.marques@gmx.net>.
cinamod [Tue, 30 Sep 2003 14:44:11 +0000 (14:44 +0000)]
add gtksetting
Matthias Clasen [Tue, 30 Sep 2003 00:36:29 +0000 (00:36 +0000)]
Document the "direction-changed" and "keys-changed" signals.
2003-09-30 Matthias Clasen <maclas@gmx.de>
* gdk/gdkkeys.c (gdk_keymap_class_init): Document the
"direction-changed" and "keys-changed" signals.
* gdk/gdkscreen.c (gdk_screen_class_init): Document the
"size-changed" signal.
* gdk/gdkdisplaymanager.c (gdk_display_manager_class_init):
Document the "display-opened" signal.
* gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
(gdk_display_class_init): Document the "closed" signal.
* gdk/tmpl/keys.sgml: Small addition.
* gdk/gdk-sections.txt: Add GdkDisplayClass and GdkScreenClass.
* gdk-pixbuf/gdk-pixbuf-sections.txt: Add GdkPixbufLoaderClass.
Matthias Clasen [Mon, 29 Sep 2003 23:27:41 +0000 (23:27 +0000)]
Add GdkPixbufLoaderClass.
* gdk-pixbuf/gdk-pixbuf-sections.txt: Add GdkPixbufLoaderClass.
Soeren Sandmann [Sat, 27 Sep 2003 14:13:12 +0000 (14:13 +0000)]
rename property tab_moves_focus to accepts_tab. (#122709 again).
Sat Sep 27 16:02:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktextview.[ch]: rename property tab_moves_focus to
accepts_tab. (#122709 again).
Matthias Clasen [Sat, 27 Sep 2003 00:42:20 +0000 (00:42 +0000)]
Document the fact that the newly created object does not come with a
2003-09-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow.c (gtk_window_new):
* gtk/gtkitemfactory.c (gtk_item_factory_new): Document
the fact that the newly created object does not come with
a floating reference. (#103068, patch by Frederic Lespez)
Matthias Clasen [Fri, 26 Sep 2003 23:59:42 +0000 (23:59 +0000)]
Deprecate GtkItemFactory in favor of GtkUIManager. Just leave
2003-09-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor
of GtkUIManager. Just leave GtkTranslateFunc undeprecated,
since GtkActionGroup uses it.
Matthias Clasen [Fri, 26 Sep 2003 23:33:46 +0000 (23:33 +0000)]
Turn off GTK_DISABLE_DEPRECATED, since this test uses the
2003-09-27 Matthias Clasen <maclas@gmx.de>
* tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
this test uses the soon-to-be-deprecated GtkItemFactory.
* demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
remove item_factory.c
* demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c
using GtkUIManager instead of GtkItemFactory.
Matthias Clasen [Fri, 26 Sep 2003 23:01:32 +0000 (23:01 +0000)]
Demonstrate the use of the connect-proxy signal.
2003-09-27 Matthias Clasen <maclas@gmx.de>
* tests/testmerge.c: Demonstrate the use of the
connect-proxy signal.
* gtk/gtkaction.c (connect_proxy): Add connect-proxy and
disconnect-proxy signals to do small customizations
like displaying tooltips in the statusbar without
custom actions. (#122894, Philip Langdale)
* gtk/gtkuimanager.c (update_node): Don't leak tooltip.
Kristian Rietveld [Fri, 26 Sep 2003 21:57:06 +0000 (21:57 +0000)]
Landing the new ComboBox. Note that only gtkcombobox.h and
Fri Sep 26 23:49:44 2003 Kristian Rietveld <kris@gtk.org>
Landing the new ComboBox. Note that only gtkcombobox.h and
gtkcomboboxentry.h are public.
* gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
* gtk/Makefile.am, gtk/gtk.h: adding the new files.
* tests/testcombo.c: and a new test.
* tests/Makefile.am: adding the new test.
Tor Lillqvist [Thu, 25 Sep 2003 18:48:06 +0000 (18:48 +0000)]
Don't use hardcoded DEMOCODEDIR on Windows.
2003-09-25 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
2003-09-21 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (handle_wm_paint): New
function. Code split out from gdk_event_translate(). Needed
because gdk_event_get_graphics_expose() couldn't do anything
sensible otherwise. (Not that I think graphics exposes work anyway
in gdk/win32, but at least now the code could work.)
(gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
gdk_event_translate(), which couldn't have worked as it doesn't
take any pre-allocated GdkEvent parameter any longer.
(gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
cinamod [Thu, 25 Sep 2003 15:07:02 +0000 (15:07 +0000)]
set delay on popdown menus
cinamod [Thu, 25 Sep 2003 15:04:16 +0000 (15:04 +0000)]
set delay on popdown menus
KAMAGASAKO Masatoshi [Wed, 24 Sep 2003 16:58:53 +0000 (16:58 +0000)]
Updated Japanese translation.
2003-09-25 KAMAGASAKO Masatoshi <emerald@gnome.gr.jp>
* ja.po: Updated Japanese translation.
Matthias Clasen [Tue, 23 Sep 2003 23:55:02 +0000 (23:55 +0000)]
Demonstrate tooltips on toolitems.
2003-09-24 Matthias Clasen <maclas@gmx.de>
* demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
on toolitems.
Matthias Clasen [Tue, 23 Sep 2003 23:42:39 +0000 (23:42 +0000)]
Sync tooltips on toolitems.
2003-09-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
* gtk/gtkuimanager.c (update_node): Don't complain about missing
actions on popups. Re-set "tooltip" property on toolitems after
adding them to parent to trigger proxy update.
cinamod [Mon, 22 Sep 2003 14:36:30 +0000 (14:36 +0000)]
const some strings
Matthias Clasen [Mon, 22 Sep 2003 08:54:23 +0000 (08:54 +0000)]
Initially activate the JUSTIFY_RIGHT group member to test the fix for
2003-09-22 Matthias Clasen <maclas@gmx.de>
* tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
group member to test the fix for #122904.
* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
Add the action to the group before activating it, otherwise we
may end up with multiple active group members. (#122904, Marco
Pesenti Gritti)
Matthias Clasen [Mon, 22 Sep 2003 08:30:26 +0000 (08:30 +0000)]
Fix a copy-and-paste error. (#122800)
2003-09-22 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtktable.sgml: Fix a copy-and-paste error. (#122800)
Matthias Clasen [Sun, 21 Sep 2003 22:04:48 +0000 (22:04 +0000)]
Changes to make cross-process merging feasible:
2003-09-21 Matthias Clasen <maclas@gmx.de>
Changes to make cross-process merging feasible:
* gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
merged UI definition. Remove the "changed" signal, since its role
is now filled by "notify::ui". Instead add a "actions-changed" signal
which gets emitted when the set of actions changes.
* gtk/gtktoggleactionprivate.h:
* gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
Add a "draw_as_radio" property to toggle actions so that they can be
used as proxies for radio actions much like the "draw_as_radio"
property on check menu items enables them to operate as proxies for
radio actions.
Prevent the "show_all" trap for action-based menus (see
http://mail.gnome.org/archives/gtk-devel-list/2003-September/
msg00260.html):
* gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
calls from static functions.
* gtk/gtkuimanager.c (update_node):
* gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
widgets whose visibility is externally controlled.
* gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
"no_show_all" property with setter and getter. When TRUE, it keeps
gtk_widget_{hide,show}_all() from modifying the visibility of the
widget and its children.
Soeren Sandmann [Sun, 21 Sep 2003 21:17:44 +0000 (21:17 +0000)]
Add new "tab moves focus" property (#122709)
Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
Tor Lillqvist [Sat, 20 Sep 2003 23:52:16 +0000 (23:52 +0000)]
Don't use zip -r on the etc directory, to avoid including editor backup
2003-09-20 Tor Lillqvist <tml@iki.fi>
* gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
including editor backup files. List files we want explicitly.
* gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
LC_ALL, LC_CTYPE and LANG environment variables, than calls
g_win32_getlocale().
(gtk_get_default_language): Code snippet moved to above function,
call it.
* gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
* gtk/gtkrc.c (gtk_rc_context_parse_file): Call
_gtk_get_lc_ctype() instead of setlocale().
Raymond Penners [Sat, 20 Sep 2003 09:56:27 +0000 (09:56 +0000)]
0.4.3
Matthias Clasen [Fri, 19 Sep 2003 19:20:09 +0000 (19:20 +0000)]
Remove a pointless check. (#122710, Kjartan Maraas)
2003-09-19 Matthias Clasen <maclas@gmx.de>
* io-tga.c (try_preload): Remove a pointless check.
(#122710, Kjartan Maraas)
Soeren Sandmann [Fri, 19 Sep 2003 16:18:16 +0000 (16:18 +0000)]
implement RTL flipping (#96632)
Fri Sep 19 18:15:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
(#96632)